package Test;

import java.util.Scanner;

public class TestArraySecond {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);

        //创建数组
        System.out.print("请输入数组长度：");
        int lenth=sc.nextInt();
        int[] sim=new int[lenth];
        System.out.println();

        //生成数组
        System.out.print("请输入数组内容: ");
        for (int i = 0; i < lenth; i++) {
            sim[i]=sc.nextInt();
        }


        //构造ArraySort
        ArraySort as=new ArraySort(sim);
        as.setOrder();

        //输出ArraySort
        for (int i :as.getSim()) {
            System.out.print(i+" ");
        }

    }
}
